package com.zsck.zsgy.util

import com.jeremyliao.liveeventbus.core.LiveEvent

class LiveDataEvent : LiveEvent {

    var event: Int = 0// 区分不同的处理逻辑
    var argInt: Int = 0// int类简单参数
    var argBoolean: Boolean = false// boolean类简单参数
    var argString: String? = null// String类简单参数
    var obj: Any? = null// 其他复制参数

    constructor(event: Int) {
        this.event = event
    }

    constructor(event: Int, argInt: Int) {
        this.event = event
        this.argInt = argInt
    }

    constructor(event: Int, argBoolean: Boolean) {
        this.event = event
        this.argBoolean = argBoolean
    }

    constructor(event: Int, argString: String) {
        this.event = event
        this.argString = argString
    }

    constructor(event: Int, obj: Any) {
        this.event = event
        this.obj = obj
    }
}